package com.enlink.didu.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 角色表-IDEA
 * </p>
 *
 * @author idea
 * @since 2017-01-01
 */
public class IdeaRole extends Model<IdeaRole> {

    private static final long serialVersionUID = 1L;

    /**
     * 角色ID
     */
    @TableId(value = "role_id", type = IdType.AUTO)
    private Integer roleId;

    /**
     * 角色名称
     */
    private String roleName;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建者ID
     */
    private String createUserId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 状态；1-有效; 0-无效
     */
    @TableField("`status`")
    private Integer status;


    public Integer getRoleId() {
        return roleId;
    }

    public IdeaRole setRoleId(Integer roleId) {
        this.roleId = roleId;
        return this;
    }

    public String getRoleName() {
        return roleName;
    }

    public IdeaRole setRoleName(String roleName) {
        this.roleName = roleName;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public IdeaRole setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public IdeaRole setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
        return this;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public IdeaRole setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
        return this;
    }

    public Integer getStatus() {
        return status;
    }

    public IdeaRole setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public static final String ROLE_ID = "role_id";

    public static final String ROLE_NAME = "role_name";

    public static final String REMARK = "remark";

    public static final String CREATE_USER_ID = "create_user_id";

    public static final String CREATE_TIME = "create_time";

    public static final String STATUS = "status";

    @Override
    protected Serializable pkVal() {
        return this.roleId;
    }

    @Override
    public String toString() {
        return "IdeaRole{" +
        "roleId=" + roleId +
        ", roleName=" + roleName +
        ", remark=" + remark +
        ", createUserId=" + createUserId +
        ", createTime=" + createTime +
        ", status=" + status +
        "}";
    }
}
